import request from "@/utils/request";

const qualityControlAPI = {
  /**
   * 获取当天生产单状态
   *
   * @param queryParams 查询参数
   */
  getTodayProdStatus() {
    // let query = encodeURIComponent(JSON.stringify({ ...queryParams }));
    // console.log(query);
    return request<any, PageResult<Tabulation[]>>({
      url: `/core/productQualityTrace/getTodayProdStatus`,
      method: "get",
    });
  },
  /**
   * 抽检
   *
   * @param code 生产单编号
   */
  saveOrUpdateProdReportControl(data: ReportControl) {
    return request({
      url: `/core/tProdReportControl/saveOrUpdateProdReportControl`,
      method: "post",
      data: data,
    });
  },
};
export default qualityControlAPI;
/** 登录用户信息 */
export interface Inquire {
  productName?: string; //产品名称
  prodCode?: string; //生产单编号
}
export interface Tabulation {
  code?: string; //生产单编号
  productType?: string; //产品类型
  productName?: string; //产品名称
  qty?: number; //生产数量
  status?: string; //状态
  physicalImage?: [];
  reportImage?: [];
}
export interface ReportControl {
  // code?: string; //产品名称
  parentCode?: string; //生产单编号
}
